package com.dingyx.ps.feign.hystrix;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dingyx.ps.feign.api.OrderFeignService;
import com.dingyx.ps.model.thirdpart.BnContractParam;
import com.dingyx.ps.model.ReturnT;
import com.dingyx.ps.model.entity.BnContract;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author dingyuxin
 *
 */
@Slf4j
@Component
public class ServerHystrix implements OrderFeignService {
    @Override
    public ReturnT<IPage<BnContract>> pageList(BnContractParam param) {
        log.info("order 服务 开始熔断");
        return ReturnT.SUCCESS("此处描述熔断后返回的内容");
    }
}
